package com.swak.json;

import java.util.List;

import com.google.common.collect.Lists;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
public class OrderList {

	private List<StringOrder> orders;

	public static OrderList build() {
		List<StringOrder> orders = Lists.newArrayList();
		StringOrder order = new StringOrder();
		order.setName2("1");
		orders.add(order);
		order = new StringOrder();
		order.setName2("2");
		orders.add(order);
		order = new StringOrder();
		order.setName2("3");
		orders.add(order);
		return new OrderList().setOrders(orders);
	}
}
